package JAVACORE_TRAINING.OOPs.OOPs_EXCERCISES.LEVER02.EX01;

public class Models {
	public double Area(TringleObject objTringle){
		double p = (objTringle.getdSide01()
										+ objTringle.getdSide02()
										+ objTringle.getdSide03())/2;		
		return Math.sqrt(p*(p - objTringle.getdSide01())
											* (p - objTringle.getdSide02())
											* (p - objTringle.getdSide03()));
	}
	
	public double Perrimetter(TringleObject objTringle){
		return objTringle.getdSide01()
							+ objTringle.getdSide02()
							+ objTringle.getdSide03();
	}
}
